home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / nos042_s / ftpcli.h < prev    next >
C/C++ Source or Header  |  1994-09-16  |  2KB  |  62 lines

  1. /****************************************************************************
  2. *    $Id: ftpcli.h 1.4 94/02/02 14:38:00 ROOT_DOS Exp $
  3. *    22 Dec 93    1.3        iain@nomed.demon.co.uk    Batch stuff.
  4. *    01 Feb 94    1.4        GT    Wrap column.
  5. *
  6. *  Atari version by David Nash - dnash@chaos.demon.co.uk
  7. *
  8. *  Add V_BYTE verbosity level
  9. *
  10. ****************************************************************************/
  11.  
  12. #ifndef    _FTPCLI_H
  13. #define    _FTPCLI_H
  14.  
  15. #include <stdio.h>
  16.  
  17. #ifndef    _FTP_H
  18. #include "ftp.h"
  19. #endif
  20.  
  21. #ifndef _SESSION_H
  22. #include "session.h"
  23. #endif
  24.  
  25. #define    LINELEN    256        /* Length of user command buffer */
  26.  
  27. #define CTLZ    26        /* EOF for CP/M systems */
  28.  
  29. /* Per-session FTP client control block */
  30. struct ftpcli {
  31.     int control;        /* Control socket */
  32.     int data;        /* Data socket */
  33.  
  34.     char state;
  35. #define    COMMAND_STATE    0    /* Awaiting user command */
  36. #define    SENDING_STATE    1    /* Sending data to user */
  37. #define    RECEIVING_STATE    2    /* Storing data from user */
  38.  
  39.     int16 verbose;            /* Transfer verbosity level                         */
  40. #define    V_QUIET        0    /* Error messages only                                 */
  41. #define    V_SHORT        1    /* Final message only                                 */
  42. #define    V_NORMAL        2    /* display control messages                         */
  43. #define    V_HASH        3    /* control messages, hash marks                     */
  44. #define    V_BYTE        4    /* control messages, byte count (ATARI)         */
  45.  
  46.     int batch;                /* Command batching flag */
  47.     int abort;                /* Aborted transfer flag */
  48.     char type;                /* Transfer type */
  49.     char typesent;            /* Last type command sent to server */
  50.     int logbsize;            /* Logical byte size for logical type */
  51.     int16 wrap;                /* hash wrap column                        */
  52.     FILE *fp;                /* File descriptor being transferred */
  53.     int sourcefileon;          /* 1 readinf lines from surce file */
  54.     FILE *source;             /* file to source commands from */
  55.  
  56.     struct session *session;
  57.     void *fsocket;             /* helps with doopen */
  58. };
  59. #define    NULLFTP    (struct ftpcli *)0
  60.  
  61. #endif    /* _FTPCLI_H */
  62.